package com.fenghongzhang.module_user.api

import com.fenghongzhang.lib_network.model.BaseResponse
import com.fenghongzhang.module_user.model.UserInfo

import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST


interface UserApiService {

    //15, 网络请求登录
    @POST("/user/login")
    @FormUrlEncoded
    suspend fun getUserInfo(@Field("username")name:String,  @Field("password") password:String): BaseResponse<UserInfo>
}